package com.yourcompany.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "角色DTO")
public class RoleDTO {

    @NotBlank(message = "角色名称不能为空")
    @Schema(description = "角色名称")
    private String name;

    @NotBlank(message = "角色标识不能为空")
    @Schema(description = "角色标识")
    private String code;

    @Schema(description = "角色描述")
    private String description;

    @Schema(description = "排序")
    private Integer sort = 0;

    @NotNull(message = "状态不能为空")
    @Schema(description = "状态：0-禁用 1-启用")
    private Boolean status = true;

    @Schema(description = "是否系统角色：0-否 1-是")
    private Boolean isSystem = false;
} 